﻿using Microsoft.Extensions.DependencyInjection;
using SkyApm.AspNetCore.Diagnostics;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Ebusiness_Framework.SkyAPMConfig
{
    public static class SkyAPMServiceExtentions
    {
        /// <summary>
        /// 使用链路监控SkyWalking
        /// </summary>
        /// <param name="Services"></param>
        public static IServiceCollection UseSkyAPM(this IServiceCollection Services)
        {
            Services.AddSkyAPM(ext =>
            {
                ext.AddAspNetCoreHosting();
            });
            return Services;
        }
    }
}
